﻿using PetaPoco;
using System;
using System.Collections.Generic;

namespace Xms.CRM.Domain
{
    [TableName("Student")]
    [PrimaryKey("StudentId", AutoIncrement = false)]
    public partial class Student
    {
        public Guid StudentId { get; set; }
        public string Name { get; set; }
        public byte[] VersionNumber { get; set; }
        public DateTime CreatedOn { get; set; }
        public Guid CreatedBy { get; set; }
        public DateTime? ModifiedOn { get; set; }
        public Guid? ModifiedBy { get; set; }
        public int StateCode { get; set; }
        public int StatusCode { get; set; }
        public Guid OwnerId { get; set; }
        public int OwnerIdType { get; set; }
        public Guid? OwningBusinessUnit { get; set; }
        public Guid OrganizationId { get; set; }
        public string Phone { get; set; }
        //public string ImageUrl { get; set; }
        public string Number { get; set; }
        public bool? IsMonitor { get; set; }
        public DateTime? Birthday { get; set; }
        public string Telephone { get; set; }
        public string ParentsPhone { get; set; }
        public string Address { get; set; }
        public DateTime? EnrollmentDate { get; set; }
        public DateTime? EndingDate { get; set; }
        public string Remark { get; set; }
        public string Code { get; set; }
        public Guid? CampusClassId { get; set; }
        public Guid? CampusGradeId { get; set; }
        public Guid? OampusClassId { get; set; }
        public Guid? IntentionStudentId { get; set; }
        public Guid? CampusId { get; set; }
        public int? Sex { get; set; }
    }
}
